void Start() { spriteAlternator = GetComponent <SpriteAlternator>(); movement = GetComponent <MiniLeenKiatMovement>(); bodyCollider = GetComponent <BoxCollider2D>(); turnBox = GetComponentInChildren <Turnbox>(); }
void Start() { hitBoxes = GetComponentsInChildren <Hitbox>(); hurtBoxes = GetComponentsInChildren <Hurtbox>(); turnBox = GetComponentInChildren <Turnbox>(); spriteRenderer = GetComponent <SpriteRenderer>(); movement = GetComponent <BlueScreenComputerMovement>(); Invoke(Message.STARTED_MOVEMENT, null); }