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