// Gets the game handler, the storage, and lark for child classes. public GameEvent(GameHandler gHandler) { this.gHandler = gHandler; this.lark = gHandler.getLark(); this.storage = gHandler.getStorage(); this.larkScript = storage.getLarkScript(); // Also gets the Mask's script. mask = (Mask)storage.getMask().GetComponent(typeof(Mask)); }
public void initialize(GameHandler gHandler) { this.gHandler = gHandler; this.lark = gHandler.getLark(); this.storage = gHandler.getStorage(); // Gets the game mask. mask = (Mask)GameObject.Find("Mask").GetComponent(typeof(Mask)); // Gets Lark's script. lScript = (Lark)lark.GetComponent(typeof(Lark)); }