Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     gamesession       = Object.FindObjectOfType <gamesession>();
     isalive           = true;
     playerrb          = GetComponent <Rigidbody2D>();
     animator          = GetComponent <Animator>();
     boxCollider2D     = GetComponent <BoxCollider2D>();
     capsuleCollider2D = GetComponent <CapsuleCollider2D>();
 }
 private void Awake()
 {
     point       = 100;
     gamesession = Object.FindObjectOfType <gamesession>();
 }