private void Awake() { if (Instance == null) { Instance = this; run = false; MyText = "start"; contVertx = 0; } else { Destroy(gameObject); } }
protected void Start() { this.provIndentifier = provIndentifier + "_" + this.GetInstanceID().ToString(); this.balanceApplier = GameObject.Find("Balance").GetComponent <BalanceApplier>(); this.temp_currHp = this.stat_hp; GameObject provenanceObj = GameObject.Find("Provenance"); this.animator = this.GetComponent <Animator>(); this.extractProvenance = this.GetComponent <ExtractProvenance>(); this.scoreManager = GameObject.Find("ScoreManager").GetComponent <ScoreManager>(); //this.extractProvenance.influenceContainer = provenanceObj.GetComponent<InfluenceController>(); //this.extractProvenance.provenance = provenanceObj.GetComponent<ProvenanceController>(); this.rigidbody = this.GetComponent <Rigidbody2D>(); ProjectilesLoad(); acessPython = FindObjectOfType <AccessPython>(); }