public void AttachView(TurretView view) { m_View = view; m_View.AttachData(this); m_Weapon = m_Asset.WeaponAsset.GetWeapon(m_View); }
void Awake() { weapon = GetComponent <ITurretWeapon>(); turretController = GetComponent <CharacterController>(); }