void OnCollisionStay(Collision col) { //player attacks override enemy attacks if (col.gameObject.tag == "Enemy" && cSlice.getState() != CombatSlice.combatState.ATTACK) { FollowTest lame = col.gameObject.GetComponent <FollowTest>(); Debug.Log(lame.ToString()); CombatSlice cs = lame.getSlice(); //...but not if the enemy attacked first if (cs.getState() == CombatSlice.combatState.ATTACK) { EntityStats es = col.gameObject.GetComponent <FollowTest>().stats; float esa = es.attack * 4; cSlice.damage(esa, es); } } }
private void Test31() { FollowTest.PrintRecommondedCards(); Debug.Log("Follow test over"); }