void Awake() { rigid = GetComponent <Rigidbody2D>(); playerInput = GetComponent <PlayerInput>(); playerTP = GetComponent <PlayerTP>(); saveMoveSpeed = moveSpeed; }
// Use this for initialization void Start() { Instance = this; player = this.gameObject; needsToTP = false; safeToTP = false; }