private void Start() { chatMoov = transform.GetComponent <ChatMooving>(); if (chatMoov != null) { chatMoov.Next(); } audioSouce = GetComponent <AudioSource>(); }
private void Start() { if (GameObject.Find("GameManager").GetComponent <MakeChat>() != null) { mana = GameObject.Find("GameManager").GetComponent <MakeChat>(); } else { Debug.Log("MakeChatがありませんでした。"); } chatMoov = GameObject.Find("GameManager").GetComponent <ChatMooving>(); manager = GameObject.Find("GameManager").GetComponent <GameManager>(); }
private void Awake() { chatMoov = GetComponent <ChatMooving>(); }
private void Start() { chatMoov = GameObject.Find("GameManager").GetComponent <ChatMooving>(); }