2022-12-29 21:03:40 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
[RequireComponent(typeof(FollowingEnemy))]
|
|
|
|
|
class RespownTrigger : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public GameObject CoreRespowner;
|
|
|
|
|
|
|
|
|
|
public bool wasKilled = false;
|
|
|
|
|
|
|
|
|
|
public void Start()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Update()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetParentRespowner(GameObject parentRespowner)
|
|
|
|
|
{
|
|
|
|
|
CoreRespowner = parentRespowner;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void MarkAsKilled()
|
|
|
|
|
{
|
2023-01-07 20:21:00 +01:00
|
|
|
|
wasKilled = true;
|
|
|
|
|
|
2022-12-29 21:03:40 +01:00
|
|
|
|
CoreRespowner.GetComponent<CounterRespowner>().killedMinions += 1;
|
2023-01-07 20:21:00 +01:00
|
|
|
|
CoreRespowner.GetComponent<CounterRespowner>().Respown = true;
|
2022-12-29 21:03:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|