Exemplo n.º 1
0
    private float rotX = 0.0f; // rotation around the right/x axis

    void Start()
    {
        player2D = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerBehavior2D>();
        Vector3 rot = transform.localRotation.eulerAngles;

        rotY = rot.y;
        rotX = rot.x;
    }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     myPlayer     = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerBehavior2D>();
     gameComplete = false;
 }