//............................................................... //..................................................... * START * void Start() { transform.localRotation = Quaternion.Euler(0.0f, 0.0f, 0.0f); if (isRightWingObject == true) { isFlappingLeft = false; } else if (isRightWingObject == false) { isFlappingLeft = true; } //Getting the color of the fairy m_Fairy = GameObject.FindWithTag("Fairy"); ownerOfTheseWings = m_Fairy.GetComponent <FairyMovement>(); m_FairyWingRenderer = GetComponent <Renderer>(); }
private void Awake() { movement = GetComponent <FairyMovement>(); }