Beispiel #1
0
 public void Awake()
 {
     if (singleton == null)
     {
         singleton = this;
         return;
     }
     Destroy(this);
 }
    // Use this for initialization
    void Start()
    {
        _playerRB2D = this.gameObject.GetComponent <Rigidbody2D>();
        _playAnim   = this.gameObject.GetComponent <playerAnimationScript> ();
//        Swinging = false;
        hasJumped   = 0;
        standupTime = 1;
        _playerRB2D.freezeRotation = true;
        this.transform.position    = Vector3.zero;
    }