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

            var debugFlag = GetComponent <DebugFlag>();

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