Exemplo n.º 1
0
 void Start()
 {
     rb.GetComponent <Rigidbody2D>();
     centrePlatformLocation = platform.transform.position;
     up       = true;
     stickman = GameObject.Find("stickman").GetComponent <stickmanScript>();
 }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject stickmanSprite = GameObject.Find("stickman");

        stickman = stickmanSprite.GetComponent <stickmanScript>();
        Destroy(this);
        //remember to get rid of this line of code to make the buttons work
    }
Exemplo n.º 3
0
    void Start()
    {
        GameObject stickmanObject = GameObject.Find("stickman");

        stickman = stickmanObject.GetComponent <stickmanScript>();

        yLocStep           = item.transform.position.y;
        stepVectorPosition = item.transform.position;
    }
Exemplo n.º 4
0
 void Start()
 {
     anim     = GetComponent <Animator>();
     stickman = GameObject.Find("stickman").GetComponent <stickmanScript>();
 }
Exemplo n.º 5
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject stickmanSprite = GameObject.Find("stickman");

        stickman = stickmanSprite.GetComponent <stickmanScript>();
    }