Exemplo n.º 1
0
        // Use this for initialization
        void Start()
        {
            NCS = GetComponent <NavigationControlSystem>();

            var debugFlag = GetComponent <DebugFlag>();

            if (debugFlag != null)
            {
                DebugLevel = debugFlag.Level;
            }
        }
Exemplo n.º 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"];
        }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     NCS        = GetComponent <NavigationControlSystem>();
     AttackEnds = float.PositiveInfinity;
 }
Exemplo n.º 4
0
 public ChaseAttackAction(NavigationControlSystem ncs, GameObject target)
 {
     NCS    = ncs;
     Target = target;
 }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     NCS = GetComponent <NavigationControlSystem>();
 }
Exemplo n.º 6
0
 public MoveAction(NavigationControlSystem ncs, GameObject destination, float outerRange = 5.0f)
 {
     NCS         = ncs;
     Destination = destination;
 }