private CombatAnimationController characterWindows; //Reference to the CombatAnimationController script // Use this for initialization void Start() { characterWindows = GameObject.Find("dialogue_elements").GetComponent <CombatAnimationController>(); source = this.GetComponent <AudioSource>(); player = GameObject.Find("PlayerShip"); axisOfRotation = Random.onUnitSphere; angularVelocity = Random.Range(600, 750); }
// Use this for initialization void Start() { characterWindows = GameObject.Find ("dialogue_elements").GetComponent<CombatAnimationController>(); source = this.GetComponent<AudioSource>(); player = GameObject.Find("PlayerShip"); axisOfRotation = Random.onUnitSphere; angularVelocity = Random.Range (600, 750); }