public void Configure(RocketSO type, float force, string owner) { this.type = type; this.force = force; this.owner = owner; this.disappearTimer = type.timeToLive; }
public static RocketSO GetRocketTypeByName(string name) { var rocketTypes = GameManager.i.rocketTypes; RocketSO foundType = rocketTypes[0]; foreach (RocketSO type in rocketTypes) { if (type.name == name) { foundType = type; } } return(foundType); }
public void SetWeapon(string name) { this.rocketName = name; this.rocketType = Utilities.GetRocketTypeByName(name); }