示例#1
0
 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);
 }
示例#2
0
 protected void InitPlayerCharacter()
 {
     InitMovementComponent();
     ContextualUI = GetComponentInChildren <UIPlayerComponent>();
 }