protected void InitPlayerCharacter() { InitMovementComponent(); Player = this; ContextualUI = GetComponentInChildren <UIPlayerComponent>(); SpriteRender = GetComponentInChildren <SpriteRenderer>(); InitialSortingOrder = SpriteRender.sortingOrder; InitialZPosition = transform.position.z; image = ContextualUI.GetComponentInChildren <Image>(); Inventory = GetComponent <InventoryComponent>(); Inventory.AddItem(Item.EType.Mask); Inventory.AddItem(Item.EType.Newspaper); Inventory.AddItem(Item.EType.Grandma); }
protected void InitPlayerCharacter() { InitMovementComponent(); ContextualUI = GetComponentInChildren <UIPlayerComponent>(); }