public void InitGameCtlSetup( bool isHost, int hostCharcardId, int hostCardLevel, int hostCardsetId, int duelCharcardId, int duelCardLevel, int duelCardsetId ) { Debug.Log("InitGameCtlSetup"); if (!isHost) { var phase_layer = GameObject.FindGameObjectWithTag("phase_layer").transform; SelfCCSetPhase = phase_layer.Find("duelphase").GetComponent <CCPhaseRender>(); DuelCCSetPhase = phase_layer.Find("selfphase").GetComponent <CCPhaseRender>(); var skill_layer = GameObject.FindGameObjectWithTag("skill_layer").transform; SelfCCSetSkill = skill_layer.Find("DuelSkillRender").GetComponent <CCSkillRender>(); DuelCCSetSkill = skill_layer.Find("SelfSkillRender").GetComponent <CCSkillRender>(); // SelfPhaseNumber = // DuelCCSetPhase.transform.Find("set_b/number").GetComponent<TextMeshPro>(); // DuelPhaseNumber = // SelfCCSetPhase.transform.Find("set_b/number").GetComponent<TextMeshPro>(); DuelCC_ID = hostCharcardId; DuelCC_Level = hostCardLevel; DuelCardSet_ID = hostCardsetId; SelfCC_ID = duelCharcardId; SelfCC_Level = duelCardLevel; SelfCardSet_ID = duelCardsetId; } else { SelfCC_ID = hostCharcardId; SelfCC_Level = hostCardLevel; SelfCardSet_ID = hostCardsetId; DuelCC_ID = duelCharcardId; DuelCC_Level = duelCardLevel; DuelCardSet_ID = duelCardsetId; } StartCoroutine(StartResxLoad()); StartCoroutine(SelfCCImplement()); StartCoroutine(DuelCCImplement()); }
public override void OnInspectorGUI() { DrawDefaultInspector(); CCPhaseRender d = (CCPhaseRender)target; if (GUILayout.Button("Test Move Phase in")) { d.test_PlayAnimation(EventHookPhase.MoveCardDropPhase, EventHookType.Before); } if (GUILayout.Button("Test Move Phase out")) { d.test_PlayAnimation(EventHookPhase.FinishMovePhase, EventHookType.Before); } if (GUILayout.Button("Test ATK Phase in")) { d.test_PlayAnimation(EventHookPhase.AttackCardDropPhase, EventHookType.Before); } if (GUILayout.Button("Test ATK Phase out")) { d.test_PlayAnimation(EventHookPhase.AttackCardDropPhase, EventHookType.After); } if (GUILayout.Button("Test DEF Phase in")) { d.test_PlayAnimation(EventHookPhase.DefenceCardDropPhase, EventHookType.Before); } if (GUILayout.Button("Test DEF Phase out")) { d.test_PlayAnimation(EventHookPhase.DefenceCardDropPhase, EventHookType.After); } if (GUILayout.Button("Test Dice Phase ")) { d.test_PlayAnimation(EventHookPhase.DetermineBattlePointPhase, EventHookType.Before); } }