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