Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     GameManager.Instance.CameraFollow = this;
     _transform           = GetComponent <Transform>();
     _sepiaEffect         = GetComponent <SepiaTone>();
     _playerInput         = FindObjectOfType <Player_InputController>();
     _sepiaEffect.enabled = false;
     _camera = GetComponent <Camera>();
 }
Beispiel #2
0
 // Use this for initialization
 void Awake()
 {
     _instance     = this;
     _animator     = GetComponent <Animator>();
     _movement     = GetComponent <Player_Movement>();
     _input        = GetComponent <Player_InputController>();
     _hp           = _OriginalHP;
     _transform    = GetComponent <Transform>();
     _cameraFollow = FindObjectOfType <Player_CameraFollow>();
     _hpBar        = FindObjectOfType <HPBarController>();
     _hammer       = GetComponent <Weapon_Hammer>();
 }