示例#1
0
 public override void ignition()
 {
     StartForLocals();
     moveConductor = GetComponent <AidansMovementScript>();
     body          = GetComponent <Rigidbody2D>();
     // StartCoroutine("AllignRemotes");
 }
示例#2
0
    void Awake()
    {
        legs = gameObject.GetComponent <AidansMovementScript>();
//a positive z value sholud be used as an indicator that the targetPatch variable is inactive
        currentMostAppealingPatch = transform.position + new Vector3(0, 0, 1000);
        flock.Add(gameObject);
    }
示例#3
0
 void Start()
 {
     if (GetComponentInParent <UnitBlueprint>().isMobile == true)
     {
         treatAsMobile = true;
         legs          = GetComponentInParent <AidansMovementScript>();
     }
     rangeCircle           = GetComponent <CircleCollider2D>();
     visualizer            = GetComponent <WeaponVisualizer>();
     visualizer.thisWeapon = this;
     StartCoroutine("Start2");
 }