예제 #1
0
 void ClearCC()
 {
     if (ccInstance != null)
     {
         Destroy(ccInstance.gameObject);
         ccInstance = null;
     }
 }
예제 #2
0
    void CreateCCInstance(IsometricMovement prefab)
    {
        ClearCC();

        ccInstance = GameObject.Instantiate(prefab);
        ccInstance.transform.position = startingPoint.position + Vector3.up * fDropHeight;

        inputAssist.SetTarget(ccInstance);

        CCTypeText.text = CCType;
    }
예제 #3
0
 private void SetTarget(IsometricMovement newTarget)
 {
     target  = newTarget;
     NMAgent = target == null ? null : target.GetComponent <IsometricNavMeshAgent>();
 }