Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        ChildObject = transform.GetChild(0).gameObject;

        Script = GetComponent <TakoController>();

        animator = ChildObject.GetComponent <Animator>();

        m_ObjCamera = GameObject.FindWithTag("MainCamera");
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     takoModel  = transform.GetChild(0).gameObject;
     animator   = takoModel.GetComponent <Animator>();
     takoScript = GetComponent <TakoController>();
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     m_ObjPlayer  = GameObject.FindWithTag("PlayerCharacter");
     m_TakoScript = m_ObjPlayer.GetComponent <TakoController>();
 }