void Start() { this.viseur = GameObject.Find("viseurGauche").GetComponent <MoveViseur>(); this.tailleViseur = GameObject.Find("viseurGauche").GetComponent <TailleViseur>(); this.monJoueur = GameObject.Find("Joueur").GetComponent <Joueur>(); this.touchZone = new Rect(0, 0, Screen.width / 3, Screen.height / 2); }
void Start() { this.myTransform = GetComponent <Transform>(); this.positions = this.myTransform.position; this.tailleViseur = this.myTransform.GetComponent <TailleViseur>(); }