public override void Initialize() { base.Initialize(); inventory = new Inventory(); controller = GetComponent <MCharacterController>(); if (controller == null) { controller = gameObject.AddComponent <Enemy>(); } controller.Initialize(this); }
// Use this for initialization void Start() { charController = GetComponent <MCharacterController>(); }
// Use this for initialization void Start() { charController = GetComponent<MCharacterController>(); }