//private Methods private void AddActorComponents() { m_Abilities = (gameObject.GetComponent <ActorAbilities>() == null ? gameObject.AddComponent <ActorAbilities>() : gameObject.GetComponent <ActorAbilities>()); m_Movement = (gameObject.GetComponent <ActorMovement>() == null ? gameObject.AddComponent <ActorMovement>() : gameObject.GetComponent <ActorMovement>()); m_Inventory = (gameObject.GetComponent <ActorInventory>() == null ? gameObject.AddComponent <ActorInventory>() : gameObject.GetComponent <ActorInventory>()); }
//private Methods private void AddActorComponents() { m_Abilities = (gameObject.GetComponent<ActorAbilities>() == null ? gameObject.AddComponent<ActorAbilities>() : gameObject.GetComponent<ActorAbilities>()); m_Movement = (gameObject.GetComponent<ActorMovement>() == null ? gameObject.AddComponent<ActorMovement>() : gameObject.GetComponent<ActorMovement>()); m_Inventory = (gameObject.GetComponent<ActorInventory>() == null ? gameObject.AddComponent<ActorInventory>() : gameObject.GetComponent<ActorInventory>()); }