Assets/Scripts/Player/PlayerInstanciationScript.cs
/// <summary>
/// Start is called on the frame when a script is enabled just before
/// any of the Update methods is called the first time.
/// </summary>
Start is called on the frame when a script is enabled just before
any of the Update methods is called the first time.
Start is called on the frame when a script is enabled just before any of the Update methods is called the first time .
void Start()
        {
            if (this == player)
            {
                playerTransform = player.transform;
                hpManager = player.GetComponentInChildren<PlayerHealthManager>();
                physics = player.GetComponentInChildren<PlayerPhysics>();
                movementModifier = player.GetComponentInChildren<PlayerMovementModifier>();
                clipManager = player.GetComponentInChildren<PlayerClipManager>();
                graphicsManager = player.GetComponentInChildren<PlayerGraphicsManager>();
                playerController = player.GetComponentInChildren<PlayerControllerScript>();
                playerAudio = player.GetComponentInChildren<PlayerAudioSource>();
            }
        }
void Start ( ) { if ( this == player ) { playerTransform = player . transform ; hpManager = player . GetComponentInChildren < PlayerHealthManager > ( ) ; physics = player . GetComponentInChildren < PlayerPhysics > ( ) ; movementModifier = player . GetComponentInChildren < PlayerMovementModifier > ( ) ; clipManager = player . GetComponentInChildren < PlayerClipManager > ( ) ; graphicsManager = player . GetComponentInChildren < PlayerGraphicsManager > ( ) ; playerController = player . GetComponentInChildren < PlayerControllerScript > ( ) ; playerAudio = player . GetComponentInChildren < PlayerAudioSource > ( ) ; } }
Start is called on the frame when a script is enabled just before
any of the Update methods is called the first time.
Start is called on the frame when a script is enabled just before any of the Update methods is called the first time .