I am using 3 classes:
EnemyBullet : MonoBehavior
EnemyBulletType1 : EnemyBullet
EnemyBullet Class:
void FixedUpdate(){
this.gameObject.transform.rotation = Quaternion.Euler (new Vector3 (0,0,90));
}
EnemyBulletType1 Class:
override void FixedUpdate() {
base.FixedUpdate ();
//Do something else here
}
The reason is I'll have many EnemyBulletType classes and I want them all to do a common thing and then do something on their own.
Question: This code isn't working: Error: virtual or abstract members cannot be private How is FixedUpdate() defined in the MonoBehviour and how to change it to help my usecase?