Beispiel #1
0
        // Use this for initialization
        void Start()
        {
            NCS = GetComponent <NavigationControlSystem>();

            var debugFlag = GetComponent <DebugFlag>();

            if (debugFlag != null)
            {
                DebugLevel = debugFlag.Level;
            }
        }
Beispiel #2
0
        // Use this for initialization
        void Start()
        {
            if (Mothership == null)
            {
                Mothership = GameObject.Find("Mothership");
            }
            if (NCS == null)
            {
                NCS = GetComponent <NavigationControlSystem>();
            }

            TransferFrom = GetComponent <ContainerCollection>()["CargoBay"];
            TransferTo   = Mothership.GetComponent <ContainerCollection>()["CargoBay"];
        }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     NCS        = GetComponent <NavigationControlSystem>();
     AttackEnds = float.PositiveInfinity;
 }
Beispiel #4
0
 public ChaseAttackAction(NavigationControlSystem ncs, GameObject target)
 {
     NCS    = ncs;
     Target = target;
 }
Beispiel #5
0
 // Use this for initialization
 void Start()
 {
     NCS = GetComponent <NavigationControlSystem>();
 }
Beispiel #6
0
 public MoveAction(NavigationControlSystem ncs, GameObject destination, float outerRange = 5.0f)
 {
     NCS         = ncs;
     Destination = destination;
 }