// Use this for initialization void Start() { tr_Transform = this.transform; rg_Rigidbody = this.GetComponent <Rigidbody>(); col_Collider = GetComponent <CapsuleCollider>(); an_Animator = this.GetComponentInChildren <Animator>(); ihc_IkHandlerController = GetComponentInChildren <IkHandlerController>(); ic_Inventary = GetComponent <InventaryController>(); ihc_IkHandlerController.tr_LookAtPosition = tr_LookAt; ihc_IkHandlerController.tr_RightHandPosition = tr_RightHand; ihc_IkHandlerController.tr_RightElbowPosition = tr_RightElbow; tr_Cam = Camera.main.transform; }
internal void Initialize(InventaryController ic_inventaryController) { foreach (InventaryGroupViewerController v in lst_Viewers) { if (!dic_MappedViewers.ContainsKey(v.str_SlotType)) { dic_MappedViewers.Add(v.str_SlotType, v); InventaryGroup ig_Group = ic_inventaryController.GetGroup(v.str_SlotType); if (ig_Group != null) { v.Initialize(ig_Group); } } } }