void Awake() { if (Instance == null) { Instance = this; } else { Destroy(this); } }
void Start() { m_animation = GetComponent <Animator>(); m_PlayerRigidBody = m_Player.GetComponent <Rigidbody>(); m_ObstacleInstantiatorScriptScript = m_ObstacleManager.GetComponent <ObstacleInstantiator>(); }