void Awake () { heroStrong = FindObjectOfType<HeroA>(); heroFast = FindObjectOfType<HeroB>(); SelectionBoxCurrent = SelectionBox1; defaultColor = SelectionBox1.GetComponent<Renderer>().material.color; colorsPuzzle = this.GetComponent<ColorsPuzzle>(); }
void Awake() { heroStrong = FindObjectOfType <HeroA>(); heroFast = FindObjectOfType <HeroB>(); SelectionBoxCurrent = SelectionBox1; defaultColor = SelectionBox1.GetComponent <Renderer>().material.color; colorsPuzzle = this.GetComponent <ColorsPuzzle>(); }
public Client() { var heroA = new HeroA(); var controller = new Controller(new Command(heroA.Jump), new Command(heroA.Shoot), new Command(heroA.Run), new Command(heroA.SwapWeapon)); controller.PressA(); controller.PressB(); controller.PressС(); controller.PressD(); }
void Awake() { heroStrong = FindObjectOfType <HeroA>(); heroFast = FindObjectOfType <HeroB>(); puzzleController = this.GetComponent <PuzzleController>(); }
void Awake() { heroStrong = FindObjectOfType<HeroA>(); heroFast = FindObjectOfType<HeroB>(); puzzleController = this.GetComponent<PuzzleController>(); }