// Start is called before the first frame update void Start() { uShotLevel = 0; speed = 0.07f; charge = 0.0f; uShotP = 0.0f; holdR = false; holdL = false; holdU = false; holdD = false; holdS = false; holdB = false; holdQ = false; canShoot = false; shield = transform.GetChild(0).gameObject; beam = transform.GetChild(1).gameObject; rb = this.gameObject.GetComponent <Rigidbody2D>(); obs = GameObject.Find("Main Camera").GetComponent <IPObserver>(); }
// Start is called before the first frame update void Start() { obs = GameObject.Find("Main Camera").GetComponent <IPObserver>(); }