// Use this for initialization void Start() { npc = null; GameObject gameController = GameObject.Find("GameController"); prefabSource = gameController.GetComponent<PrefabSource>(); gatlingControll = transform.GetComponentInChildren<GatlingControll>(); shootNPC = transform.parent.GetComponent<NPCShooter>(); startRotation = transform.rotation; }
// Use this for initialization void Start() { GameObject gameController = GameObject.Find("GameController"); prefabSource = gameController.GetComponent<PrefabSource>(); startRotation = transform.rotation; }