コード例 #1
0
    //...............................................................
    //..................................................... * 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>();
    }
コード例 #2
0
 private void Awake()
 {
     movement = GetComponent <FairyMovement>();
 }