예제 #1
0
    protected virtual void Awake()
    {
        velocityEstimator = GetComponent <VelocityEstimator>();
        potteryM          = transform.GetChild(0).GetComponent <PotteryManager>();
        interactable      = GetComponent <Interactable>();

        rigidbody = GetComponent <Rigidbody>();
        rigidbody.maxAngularVelocity = 50.0f;
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     startModus = true;
     targetCanvas.transform.parent.gameObject.SetActive(false);
     infoText.enabled = false;
     startTime        = Time.time;
     initLists();
     manager       = this.transform.parent.gameObject.GetComponent <PotteryManager>();
     targetSplines = new List <Spline>();
     importSplines();
     targetStep = -1;
 }
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Pottery_before")
     {
         other.transform.parent.position    = new Vector3(196.729f, 43.348f, 119.54f);
         other.transform.parent.eulerAngles = new Vector3(0.0f, 0.0f, 0.0f);
         other.GetComponentInParent <Rigidbody>().isKinematic = true;
         potteryM       = other.GetComponent <PotteryManager>();
         potteryM.state = PotteryManager.State.InStove;
         Invoke("TurnOffFlame", 3.0f);
         test();
     }
 }
예제 #4
0
 //// Start is called before the first frame update
 void Start()
 {
     potteryM  = GetComponentInParent <PotteryManager>();
     cnt       = 0;
     combCheck = false;
 }