add ckg
plantilla base para movimiento básico
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class customOrderBehaviorToSwitchCharacter : customOrderBehavior
|
||||
{
|
||||
public playerCharactersManager mainPlayerCharactersManager;
|
||||
|
||||
public override void activateOrder (Transform character)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public override Transform getCustomTarget (Transform character, Transform orderOwner)
|
||||
{
|
||||
return character;
|
||||
}
|
||||
|
||||
|
||||
public override bool checkConditionToShowOrderButton (Transform character)
|
||||
{
|
||||
if (character == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (mainPlayerCharactersManager.isCharacterInList (character.gameObject)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user