// Start is called before the first frame update
 void Start()
 {
     PA        = GetComponent <PowerBlock_Action>();
     sr        = GetComponent <SpriteRenderer>();
     rb        = GetComponent <Rigidbody2D>();
     originpos = transform.position;
     istouched = false;
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     sr = GetComponent <SpriteRenderer>();
     bc = GetComponent <BoxCollider2D>();
     PA = GetComponent <PowerBlock_Action>();
 }