public override void ignition() { StartForLocals(); moveConductor = GetComponent <AidansMovementScript>(); body = GetComponent <Rigidbody2D>(); // StartCoroutine("AllignRemotes"); }
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); }
void Start() { if (GetComponentInParent <UnitBlueprint>().isMobile == true) { treatAsMobile = true; legs = GetComponentInParent <AidansMovementScript>(); } rangeCircle = GetComponent <CircleCollider2D>(); visualizer = GetComponent <WeaponVisualizer>(); visualizer.thisWeapon = this; StartCoroutine("Start2"); }