private void Awake() { instance = this; aISteering = GetComponent <AISteering>(); pathFollower = GetComponent <PathFollower>(); healthBar = transform.GetChild(3).gameObject; }
public SteveMovement(Steve steve) { this.steve = steve; horizontal = steve.horizontal; vertical = steve.vertical; this.bob = steve.bob; }
public BobMovement(Bob bob) { this.bob = bob; horizontal = bob.horizontal; vertical = bob.vertical; this.steve = bob.steve; }
private IEnumerator KillSteve(float seconds, Steve steve) { Instantiate(swoosh, transform.position + new Vector3(0.5f, 0, 0), Quaternion.identity); yield return(new WaitForSeconds(seconds)); steve.OnDeath(); }
public void Populate(Steve steve) { int blueAmount = 0; int greenAmount = 0; int purpleAmount = 0; foreach (AdventurerType type in steve.HungerList) { switch (type) { case (AdventurerType.BLUE): blueAmount++; break; case (AdventurerType.GREEN): greenAmount++; break; case (AdventurerType.PURPLE): purpleAmount++; break; } } blue.text = "x " + blueAmount; green.text = "x " + greenAmount; purple.text = "x " + purpleAmount; }
void Start() { menu = GameObject.Find("EventSystem").GetComponent <Menu>(); steve = GameObject.Find("StevePaintable").GetComponent <Steve>(); currentAction = BrushAction; currentColor = Color.red; }
public void Play(char symbol, int x, int y) { var symbolAsEnum = Steve.ConvertSymbol(symbol); var play = new Play(symbolAsEnum, x, y); play.Validate(_lastSymbol, _board); UpdateGameState(symbolAsEnum, x, y); }
static void Main(string[] args) { Johan newJohan = new Johan(); Console.WriteLine("Lives: " + newJohan.lives); Console.WriteLine("Ability's: "); newJohan.Jump(); Console.WriteLine("----------------------------------------"); Steve newSteve = new Steve(); Console.WriteLine("Lives: " + newSteve.lives); Console.WriteLine("Ability's: "); newSteve.Crouch(); Console.WriteLine("----------------------------------------"); }
public char Winner() { return(Steve.ConvertSymbol(_board.Winner())); }
void Start() { cam = GetComponent <Camera>(); actions = GetComponent <Actions>(); steve = GameObject.Find("StevePaintable").GetComponent <Steve>(); }
private void Start() { startPos = transform.localPosition; steve = GetComponentInParent <Steve>(); }
public void GetConsumed(Steve steve) { isMoving = false; StartCoroutine(DestroyAfter(0.7f)); }
public void AttackSteve(Steve steve) { isMoving = false; StartCoroutine(KillSteve(0.5f, steve)); }
private void Awake() { rb = GetComponent <Rigidbody>(); steve = GetComponent <Steve>(); }