private void Start()
 {
     gfm = FindObjectOfType <GameFeelManager>();
     rb  = GetComponentInParent <Rigidbody2D>();
     cc  = GetComponentInParent <CharacterController2D>();
     ss  = GetComponentInParent <SwordSwing>();
 }
 // Use this for initialization
 void Start()
 {
     rb            = GetComponentInParent <Rigidbody2D>();
     aud           = FindObjectOfType <AudioManager>();
     decceleration = maxVelocity / deccelerationTime;
     gfm           = FindObjectOfType <GameFeelManager>();
 }
 // Use this for initialization
 void Start()
 {
     cc           = GetComponent <CharacterController2D>();
     audioManager = FindObjectOfType <AudioManager>();
     sf           = GetComponent <ScreenFreeze>();
     gfm          = FindObjectOfType <GameFeelManager>();
 }
 private void Start()
 {
     rb           = GetComponent <Rigidbody2D>();
     boxColl      = GetComponent <BoxCollider2D>();
     scale        = GetComponentInChildren <EnemyScaling>();
     audioManager = FindObjectOfType <AudioManager>();
     gfm          = FindObjectOfType <GameFeelManager>();
 }
 // Use this for initialization
 void Start()
 {
     rb           = GetComponent <Rigidbody2D>();
     boxColl      = GetComponent <BoxCollider2D>();
     scale        = GetComponentInChildren <ScaleWithVelocity>();
     swordSwing   = GetComponent <SwordSwing>();
     audioManager = FindObjectOfType <AudioManager>();
     gfm          = FindObjectOfType <GameFeelManager>();
     SetupMoveAndJumpSpeed();
 }
Example #6
0
 // Use this for initialization
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this.gameObject);
         return;
     }
     DontDestroyOnLoad(this.gameObject);
 }
 private void Awake()
 {
     gfm = FindObjectOfType <GameFeelManager>();
 }
 private void Start()
 {
     rb  = GetComponentInParent <Rigidbody2D>();
     eb  = GetComponentInParent <EnemyBehavior>();
     gfm = FindObjectOfType <GameFeelManager>();
 }
 private void Start()
 {
     gfm          = FindObjectOfType <GameFeelManager>();
     notShakenCam = transform.position;
 }
Example #10
0
 private void Start()
 {
     gfm = FindObjectOfType <GameFeelManager>();
 }
Example #11
0
 private void Start()
 {
     audioManager = FindObjectOfType <AudioManager>();
     gfm          = FindObjectOfType <GameFeelManager>();
 }