void Start() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } }
void Start() { hold = false; Player = GameObject.Find("Player"); PM = GameObject.FindObjectOfType <PijakanManagerScript> (); rb = Player.GetComponent <Rigidbody2D> (); minJump = 0f; jumpPressure = 0f; maxJumpPressure = 10f; armature = Player.GetComponentInChildren <UnityArmatureComponent> (); m_SFXPlayer = FindObjectOfType <SFXPlayer> (); LR = Player.GetComponentInChildren <LineRenderer> (); LR.enabled = false; }