예제 #1
0
 public override void UIBehavior(PUController pUC)
 {
     if (pUC.castHasBeenReported)
     {
         pUC.orderSprite.gameObject.SetActive(false);
     }
 }
예제 #2
0
 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);
 }
예제 #3
0
 public override void InitializeUI(PUController pUC)
 {
     pUC.orderObject.SetInteger("AnimIndex", 5);
 }
예제 #4
0
 public override void UIBehavior(PUController pUC)
 {
     pUC.orderObject.transform.position = pUC.worldTarget;
     pUC.orderSprite.gameObject.SetActive(Vector3.Distance(pUC.worldTarget, pUC.transform.position) > 2f);
 }
예제 #5
0
 public override void InitializeUI(PUController pUC)
 {
     pUC.orderObject.SetInteger("AnimIndex", 2);
     pUC.orderSprite.gameObject.SetActive(true);
 }
예제 #6
0
 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);
 }
예제 #7
0
 public abstract void UIBehavior(PUController pUC);
예제 #8
0
 public abstract void InitializeUI(PUController pUC);
예제 #9
0
 public override void InitializeUI(PUController pUC)
 {
     pUC.orderObject.SetInteger("AnimIndex", 4);
     pUC.orderSprite.gameObject.SetActive(true);
     pUC.orderObject.transform.position = pUC.worldTarget;
 }