//-----------------------------------------------------COLLISION FUNCTIONS--------------------------------------------------------------------------------- virtual public void Land() { isInAir = false; GameObject handler = GameObject.FindGameObjectWithTag("GameHandler"); GameHandlerScript hand = handler.GetComponent <GameHandlerScript>(); hand.BlockLanded(); hand.spawner.shooting = false; }
override public void Land() { isInAir = false; enabled = false; handler = GameObject.FindGameObjectWithTag("GameHandler"); GameHandlerScript hand = handler.GetComponent <GameHandlerScript>(); hand.BlockLanded(); hand.spawner.shooting = false; grid.AddBlockToGrid(this); blockPos = grid.FindGridPosition(this); int x, y; x = (int)(blockPos.x); y = (int)(blockPos.y); SpecialTrigger(x, y); }