39 lines
716 B
C#
39 lines
716 B
C#
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()
|
|
{
|
|
wasKilled = true;
|
|
|
|
CoreRespowner.GetComponent<CounterRespowner>().killedMinions += 1;
|
|
CoreRespowner.GetComponent<CounterRespowner>().Respown = true;
|
|
}
|
|
|
|
}
|
|
|