public override void UIBehavior(PUController pUC) { if (pUC.castHasBeenReported) { pUC.orderSprite.gameObject.SetActive(false); } }
public override void UIBehavior(PUController pUC) { if (pUC.unit.stateC.cmdTarget != null) { pUC.orderObject.transform.position = pUC.unit.stateC.cmdTarget.transform.position; return; } if (pUC.unit.stateC.currentTarget != null) { pUC.orderObject.transform.position = pUC.unit.stateC.currentTarget.transform.position; return; } pUC.orderSprite.gameObject.SetActive(false); }
public override void InitializeUI(PUController pUC) { pUC.orderObject.SetInteger("AnimIndex", 5); }
public override void UIBehavior(PUController pUC) { pUC.orderObject.transform.position = pUC.worldTarget; pUC.orderSprite.gameObject.SetActive(Vector3.Distance(pUC.worldTarget, pUC.transform.position) > 2f); }
public override void InitializeUI(PUController pUC) { pUC.orderObject.SetInteger("AnimIndex", 2); pUC.orderSprite.gameObject.SetActive(true); }
public override void UIBehavior(PUController pUC) { pUC.orderObject.transform.position = pUC.pC.transform.position + pUC.followPositionUIOffset; pUC.orderSprite.gameObject.SetActive((Vector3.Distance((pUC.pC.transform.position + pUC.followPositionUIOffset), pUC.transform.position) > 2f) && pUC.orderSprite.gameObject.activeInHierarchy); }
public abstract void UIBehavior(PUController pUC);
public abstract void InitializeUI(PUController pUC);
public override void InitializeUI(PUController pUC) { pUC.orderObject.SetInteger("AnimIndex", 4); pUC.orderSprite.gameObject.SetActive(true); pUC.orderObject.transform.position = pUC.worldTarget; }