예제 #1
0
 public override void SetTarget(GameObject target)
 {
     if (target == null)
     {
         PUtil.LogError("Invalid target specified");
     }
     else
     {
         engine = target.GetComponent <StirlingEngine>();
         RebuildPanel();
     }
 }
예제 #2
0
 // MONOBEHAVIOUR
 void Awake()
 {
     engine = this.GetComponent <StirlingEngine>();
     rbody  = this.GetComponent <Rigidbody>();
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     rbody  = this.GetComponent <Rigidbody>();
     engine = this.GetComponent <StirlingEngine>();
 }
예제 #4
0
 public override void ClearTarget()
 {
     engine = null;
 }