예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        naveControles = GetComponent <NaveControles>();
        sprRend       = GetComponent <SpriteRenderer>();
        opacity       = 0f;

        gravityForce = 20;
    }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     instance = this;
     rg2d     = gameObject.GetComponent <Rigidbody2D>();
 }