public override bool StartListen() { if (targetPlot != null) { targetPlot.AddStatus(this); return(true); } else { Debug.Log("Must set target plot before listening"); return(false); } }
public override bool StartListen() { if (targetPlot != null) { gameObject.AddComponent <ExpiredOnTurn>(); gameObject.GetComponent <ExpiredOnTurn>().Init(this, 5); //add a code to let this status listen to when player is affect by an status targetPlot.AddStatus(this); return(true); } else { Debug.Log("Must set target plot before listening"); return(false); } }