void Start() { m_AnimController = GetComponent <PlayerAnimationController>(); m_RigidBody = GetComponent <Rigidbody>(); m_Player = GetComponent <Player>(); m_Input = GetComponent <PlayerInput>(); m_Camera = Camera.main; m_AnimController.AddObserver(this); // アニメーションイベント通知受け取り用 }
void Init() { // 各種アニメーション関連のイベント通知受け取り用 m_AnimController.AddObserver(this); // PlayerManagerへの通知が完了するまで重力OFF m_RigidBody.useGravity = false; m_HalfCastDistance = m_CastDistance * 0.5f; m_CastOffset = Vector3.up * m_HalfCastDistance; m_OwnerName = monobitView.owner.name; // InGameシーンのロードよりも早くスポーンする可能性があるのでコルーチンで処理 StartCoroutine(NotifySpawnPlayer()); if (monobitView.isMine == false) { return; } ApplicationManager.CursorMgr.SetCursorSettings(); }
void Start() { skyjump1 = 0; skyjump2 = 1; fast1 = 1; fast2 = 1; m_AnimController = GetComponent <PlayerAnimationController>(); m_RigidBody = GetComponent <Rigidbody>(); m_Player = GetComponent <Player>(); m_Input = GetComponent <PlayerInput>(); m_Camera = Camera.main; m_AnimController.AddObserver(this); // アニメーションイベント通知受け取り用 shellLabel.text = "Bullet:6"; if (NetworkGUI.stageselect == 4) { shotCount = 10; } else { shotCount = 6; } }