// Use this for initialization void Start () { _carryMode = (int)CARRY_MODE.SEPERATE; _activeCharacter = (int)ACTIVE_CHARACTER.SLOTH; _playerCombine.SetActive(false); _playerMonkey.SetActive(true); _playerSloth.SetActive(true); _slothCarryMonkey.SetActive(false); _monkeyCarrySloth.SetActive(false); UIController = gameObject.GetComponent<CharachtersUIController>(); _playerSloth.GetComponent<Platformer2DUserControl>().enabled = true; _playerMonkey.GetComponent<Platformer2DUserControl>().enabled = false; isHoldingDone = false; }
// Use this for initialization void Start() { _carryMode = (int)CARRY_MODE.SEPERATE; _activeCharacter = (int)ACTIVE_CHARACTER.SLOTH; _playerCombine.SetActive(false); _playerMonkey.SetActive(true); _playerSloth.SetActive(true); _slothCarryMonkey.SetActive(false); _monkeyCarrySloth.SetActive(false); UIController = gameObject.GetComponent <CharachtersUIController>(); _playerSloth.GetComponent <Platformer2DUserControl>().enabled = true; _playerMonkey.GetComponent <Platformer2DUserControl>().enabled = false; isHoldingDone = false; }