playMaker

Author Topic: OnMouseDown and OnMouseDrag functions in one playMaker Action Script?  (Read 2393 times)

spiralKing

  • Junior Playmaker
  • **
  • Posts: 50
Would I be right in assuming that, if I wanted to turn a script containing both
void OnMouseDown, void OnMouseDrag  functions into an Action, I would have to split the script into 2 separate Actions
(one for OnMouseDown and one for OnMouseDrag)

e.g.
Code: [Select]
using UnityEngine;
using System.Collections;

public class idea : MonoBehaviour
{

public int counter1 = 0;
public int counter2 = 0;



void OnMouseDown()
{
counter1 += 100;
}


void OnMouseDrag()
{
counter2++;
}

}
I'm not asking how to create an Action, I just want to know if this whole script can go into 1 Action

spiralKing

  • Junior Playmaker
  • **
  • Posts: 50
Re: OnMouseDown and OnMouseDrag functions in one playMaker Action Script?
« Reply #1 on: September 06, 2014, 09:57:24 PM »
Bump