// Start is called before the first frame update void Start() { GameObject jamintern = GameObject.Find("MasterOfJams"); MahSoundBoi = jamintern.GetComponent <MixMaster>(); list = new List <Transform>(); switch (shipType) { //possibleTPs = new Transform[GetComponentsInChildren<Transform>().Length]; case ShipType.Knight: foreach (Transform point in GetComponentsInChildren <Transform>()) { list.Add(point); } break; case ShipType.Bishop: moveDirection = new Vector3(2, -speed, 0); break; case ShipType.Rook: moveDirection = Vector3.left; break; } InvokeRepeating("Shoot", 1, 1); }
void Start() { GameObject jamintern = GameObject.Find("MasterOfJams"); MahSoundBoi = jamintern.GetComponent <MixMaster>(); //speedVector = new Vector3(0, -speed, 0); }
void Start() { GameObject jamintern = GameObject.Find("MasterOfJams"); MahSoundBoi = jamintern.GetComponent <MixMaster>(); speed = 6f; //adjust later //speedVector = new Vector3(speed, 0, 0); if (Random.Range(0, 2) == 1) { isRight = true; } }